package com.maiji.cloud.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.maiji.cloud.entities.shopingmall.ShipmentsInfoEntity;
import com.maiji.cloud.request.shopingmall.ShipmentsInfoReqData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShipmentsInfoMapper extends BaseMapper<ShipmentsInfoEntity> {

    List<ShipmentsInfoEntity> findAllShipInfos (@Param("data") ShipmentsInfoReqData data);

    int updateExpressCount (@Param("orderId") String orderId);

    /**
     * 根据订单id就获取退货运单号
     * @param orderId
     * @return
     */
    List<String> getExpressNoListByOrderId(@Param("orderId")String orderId);

    Integer shopingOrderSendStatusCount();

}
